var timeout;
function appear(){
var the_style = getStyle("floatingflash");
if (the_style) {
var current_top = parseInt(the_style.top);
var new_top = current_top + 0;
if (document.layers) {
the_style.top = new_top;
} else {
the_style.top = new_top + "px";
}
if (new_top < 0) {
the_timeout = setTimeout('appear();',10);
}
}
} // appear
function disappear() {
var the_style = getStyle("floatingflash");
the_style.display = 'none';
} // disappear
function getStyle(ref) {
if(document.getElementById && document.getElementById(ref)) {
return document.getElementById(ref).style;
} else if (document.all && document.all(ref)) {
return document.all(ref).style;
} else if (document.layers && document.layers[ref]) {
return document.layers[ref];
} else {
return false;
}
} 


 var message="Copyrighted";
function click(e)
{
  if (document.all)
  {
    if (event.button==2||event.button==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    if (e.button==2||e.button==3)
    {
      e.preventDefault();
      e.stopPropagation();
      alert(message);
      return false;
    }
  }
}

if (document.all) // for IE
{
  document.onmousedown=click;
}
else // for FF
{
  document.onclick=click;
}


function displayvideo(swf, w, h){
swf= swf + "&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded";
var flashdisplay;
flashdisplay='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="main01" width="'+w+'" height="'+h+'">' + '<param name="movie" value="'+swf+'"/>' + '<param name="quality" value="high"/>' + '<param name="allowFullScreen" value="true"/>' + '<param name="base" value="true"/>' + '<param name="loop" value="true"/>' +'<param name="wmode" value="transparent"/>' + '<embed type="application/x-shockwave-flash"  allowfullscreen="true" src="'+swf+'" width="'+w+'" height="'+h+'"></embed>' + '</object>';

document.write(flashdisplay);
}

function EmbedFlash(swf,w,h){
// Main Flash animation - XHTML 1.0 compliant workaround for IE and Firefox (write as javascript rather then embed HTML))
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="main01" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+swf+'"/>');
document.write('<param name="quality" value="high"/>');
document.write('<param name="base" value=""/>');
document.write('<param name="loop" value=""/>');
document.write('<param name="wmode" value="transparent"/>');
document.write('<embed type="application/x-shockwave-flash" wmode="transparent" src="'+swf+'" width="'+w+'" height="'+h+'"></embed>');
document.write('</object>');	
}

function bookmark(url, title)
   {
      if (window.sidebar) // firefox
      {
         window.sidebar.addPanel(title, url, "");
      }
      else if (window.opera && window.print) // opera
      {
         var element = document.createElement("a");
         element.setAttribute("href", url);
         element.setAttribute("title", title);
         element.setAttribute("rel", "sidebar");
         element.click();
      } 
      else if (document.all) // ie
      {
         window.external.AddFavorite(url, title);
      }
   }
 
function GetPage(url)
{
	mywin=window.open(url,'aa','scrollbars=yes,width=768,height=450,left=10,top=20');
	mywin.focus();
}

   
   
function CheckEmail(address) {
if (/^\w{2,30}([\.-]?\w{2,30})*@\w{2,30}([\.-]?\w+)*(\.\w{2,3})+$/.test(address)){
	return (true)
	}
	return (false)
}

function IsChar(strString)
{

var strValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-.' ,"; 

 var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
 return blnResult;	
}

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.- ";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;
   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
 return blnResult;
}
   

function validatetell(form){
if (form.name.value=='') {alert('Please fill in your name'); form.name.focus(); return false}
if (!IsChar(form.name.value) && form.name.value!="") {alert('Special Characters, Numerics not allowed in  name'); form.name.focus(); return false}
if (form.email.value=='') {alert('Please fill in your email id'); form.email.focus(); return false}
if (!CheckEmail(form.email.value)) {alert('Invalid email id'); form.email.focus(); return false}
if (form.friendmail1.value=='') {alert('Please enter your friend email id'); form.friendmail1.focus(); return false}
if (!CheckEmail(form.friendmail1.value)) {alert('Invalid email id'); form.friendmail1.focus(); return false}
if (form.security_code.value=='') {alert('Please provide the security code provided below');form.security_code.focus();return false}
}

function validateenquiry(form){
if (form.name.value=='') {alert('Please fill your  name'); form.name.focus(); return false}
if (!IsChar(form.name.value) && form.name.value!="") {alert('Special Characters, Numerics not allowed in  name'); form.name.focus(); return false}
if (form.address.value=='') {alert('Please fill in your contact address'); form.address.focus(); return false}
if (form.email.value=='') {alert('Please fill in your email id'); form.email.focus(); return false}
if (!CheckEmail(form.email.value) && form.email.value!='') {alert('Invalid email id'); form.email.focus(); return false}
if (!CheckEmail(form.email2.value) && form.email2.value!='') {alert('Invalid email id'); form.email2.focus(); return false}
if (form.phone.value=='') {alert('Please fill your contact phone no'); form.phone.focus(); return false}
if (!IsNumeric(form.phone.value) && form.phone.value!="") {alert('Invalid phone no. Valid only numeric'); form.phone.focus(); return false}
if (form.message.value=='') {alert('Please enter your message'); form.message.focus(); return false}
if (form.security_code.value=='') {alert('Please provide the security code provided below');form.security_code.focus();return false}
} 
 
 
function validatenl(form){
if (form.EmailId.value=='') {alert('Please enter email id'); form.EmailId.focus(); return false}
if (!CheckEmail(form.EmailId.value)) {alert('Invalid email id'); form.EmailId.focus(); return false}
if (form.Name.value=='') {alert('Please enter your full name'); form.Name.focus(); return false}
if (!IsChar(form.Name.value) && form.Name.value!="") {alert('Special Characters, Numerics not allowed in  name'); form.Name.focus(); return false}
if (form.address.value=='') {alert('Please provide us your complete postal address. A copy of the information brochure would be sent.'); form.address.focus(); return false}
if (form.pincode.value=='') {alert('Provide us your 6 digit pincode / zipcode for prompt delivery of brochure.'); form.pincode.focus(); return false}
if (form.mobile.value=='') {alert('You have not choosen for mobile alerts'); form.EmailId.focus(); return true}
if(eval(form.mobile.value.length)!=10){alert("Invalid mobile number");form.mobile.focus();return false;}	
if (!IsNumeric(form.mobile.value) && form.mobile.value!="") {alert('Invalid mobile no. Valid only numeric'); form.mobile.focus(); return false}
if (form.Menu1.value=='') {alert('Please tell us, how did you come to know about us?'); form.Menu1.focus(); return false}
if (form.SpecialNotes.value=='') {alert('Please provide the Special Note'); form.SpecialNotes.focus(); return false}
}

function MM_jumpMenu(targ,sel1bj,restore){ //v3.0
  eval(targ+".location='"+sel1bj.options[sel1bj.selectedIndex].value+"'");
  if (restore) sel1bj.selectedIndex=0;
}   

document.onload = top2();

function top2()
{
document.write('<div class="topbtnfix"><a href="#" title="Back to Top"><img src="images/top.jpg" alt="Top" /></a></div>')
}

  
