$(document).ready(function()
{
   $('a[rel="tandc"]:first').qtip( // Terms and Conditions
   {
      content: {
         title: {
            text: 'Privacy Policy',
            button: 'Close'
         },
         text: 'Vignesrealm Motion Pictures appreciates your interest in the website. Vignesrealm Motion Pictures respect the privacy of every user who visits this website and are committed to maintaining the privacy and security of the personal information of all visitors to this website. Please carefully review the privacy statement below of the use of the Vignesrealm Motion Pictures\'s website or other related sites of the company.<br/><br/>' +
               'Vignesrealm Motion Pictures do not require personal information to obtain access to most of our website. We collect personal information from our visitors on a voluntary basis. Personal information may include name, phone number, email address, and other relevant data. Questions or comments submitted by visitors may also include personal information.<br/><br/>' +
			   'Vignesrealm Motion Pictures collect and use personal information for business purposes in order: to provide information or interactive services through this website, to your e\-mail address or, where you wish it to be sent by post, to your name and postal address. To seek your feedback or to contact you in relation to those services offered on the website.<br/><br/>' +
			   'At all times we attempt to treat the information about you we receive on the Internet with care deemed reasonable under the circumstances.<br/><br/>' +
               'Vignesrealm Motion Pictures may contain links to third party sites that Vignesrealm Motion Pictures does not own or maintain. The Privacy Policy does not apply to those sites. It is recommended that the user familiarises themselves with the applicable privacy policy before entering any personal information on a third party site.'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: 'unfocus',
      style: {
         width: { max: 500 },
         padding: '10px',
		 'font-size': 11,
		 textAlign: 'justify',
         border: {
            width: 0,
            radius: 0,
            color: '#666666'
         },
         name: 'dark'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the tandc "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the tandc "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   
    $('a[rel="legaln"]:first').qtip( // Legal Notice
   {
      content: {
         title: {
            text: 'Legal Notice',
            button: 'Close'
         },
         text: '<b>Terms and Conditions</b><br/>' +
               'By visiting Vignesrealm Motion Pictures, you agree that the laws of the state of Singapore, without regard to principles of conflict of laws, will govern these Conditions of Use and any dispute of any sort that might arise between you and Vignesrealm Motion Pictures or its associates.<br/><br/>' +
			   '<b>Copyright Notice</b><br/>' +
			   'All content included on this site, such as text, graphics, logos, button icons, images, audio clips, digital downloads, data compilations, and software, is the property of Vignesrealm Motion Pictures or its content suppliers and protected by Singapore and international copyright laws. The compilation of all content on this site is the exclusive property of Vignesrealm Motion Pictures, with copyright authorship for this collection by\-Vignesrealm Motion Pictures, and protected by Singapore and international copyright laws.<br/><br/>' +
			   '<b>License and Site Access</b><br/>' +
               'Vignesrealm Motion Pictures grants you a limited license to access and make personal use of this site and not to download (other than page caching) or modify it, or any portion of it, except with express written consent of Vignesrealm Motion Pictures. This license does not include any resale or commercial use of this site or its contents: any collection and use of any product listings, descriptions, or prices: any derivative use of this site or its contents: any downloading or copying of account information for the benefit of another merchant: or any use of data mining, robots, or similar data gathering and extraction tools. This site or any portion of this site may not be reproduced, duplicated, copied, sold, resold, visited, or otherwise exploited for any commercial purpose without express written consent of Vignesrealm Motion Pictures. You may not frame or utilize framing techniques to enclose any trademark, logo, or other proprietary information (including images, text, page layout, or form) of Vignesrealm Motion Pictures and our associates without express written consent. You may not use any meta tags or any other "hidden text" utilizing.'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: 'unfocus',
      style: {
         width: { max: 500 },
         padding: '10px',
		 'font-size': 11,
		 textAlign: 'justify',
         border: {
            width: 0,
            radius: 0,
            color: '#666666'
         },
         name: 'dark'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the legaln "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the legaln "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });

   // Create the tandc backdrop on document load so all tandc tooltips can use it
   $('<div id="qtip-blanket">')
      .css({
         position: 'fixed',
         top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
         left: 0,
         height: $(document).height(), // Span the full document height...
         width: '100%', // ...and full width

         opacity: 0.7, // Make it slightly transparent
         backgroundColor: 'black',
         zIndex: 5000  // Make sure the zIndex is below 6000 to keep it below tooltips!
      })
      .appendTo(document.body) // Append to the document body
      .hide(); // Hide it initially
});