﻿// JavaScript Document
var JQuery=jQuery.noConflict();
JQuery(document).ready(function(){
    // jQuery functions go here...
	//Hide Dive On Load 
	JQuery("#MainDiv2").hide();
	JQuery("#MainDiv3").hide();
	JQuery("#MainDiv4").hide();
	JQuery("#MainDiv5").hide();
	//Function
	JQuery("#MainNext_1").click(function(){			  
		JQuery("#MainDiv2").fadeIn('slow');
		JQuery("#MainDiv1").hide();
		//just to prevent interlacing in boxes in the samples page
		JQuery("#WebZoomDiv").hide();
	});
	//----------------------------
	JQuery("#MainPrev_1").click(function(){			  
		JQuery("#MainDiv1").fadeIn('slow');
		JQuery("#MainDiv2").hide();
		//just to prevent interlacing in boxes in the samples page
		JQuery("#TwoDZoomDiv").hide();
	});
	//----------------------------
	//Function
	JQuery("#MainNext_2").click(function(){			  
		JQuery("#MainDiv3").fadeIn('slow');
		JQuery("#MainDiv2").hide();
		//just to prevent interlacing in boxes in the samples page
		JQuery("#TwoDZoomDiv").hide();
	});
	//----------------------------
	JQuery("#MainPrev_2").click(function(){			  
		JQuery("#MainDiv2").fadeIn('slow');
		JQuery("#MainDiv3").hide();
		//just to prevent interlacing in boxes in the samples page
		JQuery("#ThreeDZoomDiv").hide();
	});
	//----------------------------
	//Function
	JQuery("#MainNext_3").click(function(){			  
		JQuery("#MainDiv4").fadeIn('slow');
		JQuery("#MainDiv3").hide();
	});
	//----------------------------
	JQuery("#MainPrev_3").click(function(){			  
		JQuery("#MainDiv3").fadeIn('slow');
		JQuery("#MainDiv4").hide();
	});
	//----------------------------
	//Function
	JQuery("#MainNext_4").click(function(){			  
		JQuery("#MainDiv5").fadeIn('slow');
		JQuery("#MainDiv4").hide();
	});
	//----------------------------
	JQuery("#MainPrev_4").click(function(){			  
		JQuery("#MainDiv4").fadeIn('slow');
		JQuery("#MainDiv5").hide();
	});
	//----------------------------
	//=======================================
	//Web Zoom
	JQuery("#WebZoomDiv").hide();
	JQuery("#Web1").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom1.jpg" width="550" height="500" alt="Web1" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web2").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom2.jpg" width="550" height="500" alt="Web2" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web3").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom3.jpg" width="550" height="500" alt="Web3" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web4").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom4.jpg" width="550" height="500" alt="Web4" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web5").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom5.jpg" width="550" height="500" alt="Web5" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web6").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom6.jpg" width="550" height="500" alt="Web6" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web7").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom7.jpg" width="550" height="500" alt="Web7" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	JQuery("#Web8").click(function(){
		//Put Style On Load (7.php)
		JQuery("#WebZoomDiv").css("position","absolute");
		JQuery("#WebZoomDiv").css("top","18%");
		JQuery("#WebZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("BoxContentDiv").innerHTML='<img src="Images/WebZoom/WebZoom8.jpg" width="550" height="500" alt="Web8" />';
		//Show Div
		JQuery("#WebZoomDiv").show();
	});
	//Close Button Function
	JQuery("#WebZoomClose").click(function(){
		JQuery("#WebZoomDiv").hide();

	});
	//=================================
	//3D Zoom
	JQuery("#ThreeDZoomDiv").hide();
	JQuery("#ThreeD1").click(function(){
		//Put Style On Load (7.php)
		JQuery("#ThreeDZoomDiv").css("position","absolute");
		JQuery("#ThreeDZoomDiv").css("top","18%");
		JQuery("#ThreeDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("ThreeDBoxContentDiv").innerHTML='<div><object width="530" height="360"><param name="movie" value="http://www.youtube.com/v/wjUxFOQyOyE&hl=en_US&feature=player_embedded&version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/wjUxFOQyOyE&hl=en_US&feature=player_embedded&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="530" height="360"></embed></object></div>';
		//Show Div
		JQuery("#ThreeDZoomDiv").show();
	});
	//Close Button Function
	JQuery("#ThreeDZoomClose").click(function(){
		JQuery("#ThreeDZoomDiv").hide();

	});
	JQuery("#ThreeD2").click(function(){
		//Put Style On Load (7.php)
		JQuery("#ThreeDZoomDiv").css("position","absolute");
		JQuery("#ThreeDZoomDiv").css("top","18%");
		JQuery("#ThreeDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("ThreeDBoxContentDiv").innerHTML='<div><object width="530" height="360"><param name="movie" value="http://www.youtube.com/v/0RDlsIUkT8s&hl=en_US&feature=player_embedded&version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/0RDlsIUkT8s&hl=en_US&feature=player_embedded&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="530" height="360"></embed></object></div>';
		//Show Div
		JQuery("#ThreeDZoomDiv").show();
	});
	//Close Button Function
	JQuery("#ThreeDZoomClose").click(function(){
		JQuery("#ThreeDZoomDiv").hide();

	});
	//==================================
	//2D Zoom
	JQuery("#TwoDZoomDiv").hide();
	JQuery("#TwoD1").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/1.jpg" width="426" height="537" alt="2D1" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	//Close Button Function
	JQuery("#TwoDZoomClose").click(function(){
		JQuery("#TwoDZoomDiv").hide();
	});
	JQuery("#TwoD2").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/2.jpg" width="453" height="340" alt="2D1" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD3").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/3.jpg" width="452" height="653" alt="2D3" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD4").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/4.jpg" width="468" height="517" alt="2D4" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD5").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/5.jpg" width="400" height="328" alt="2D5" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD6").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<div><object width="388" height="400"><param name="movie" value="Images/2DZoom/6.swf"></param><embed src="Images/2DZoom/6.swf" type="application/x-shockwave-flash"  width="388" height="400"></embed></object></div>';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD7").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/7.jpg" width="293" height="425" alt="2D7" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD8").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/8.jpg" width="445" height="414" alt="2D8" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD9").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/9.jpg" width="412" height="412" alt="2D9" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD10").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/10.jpg" width="475" height="255" alt="2D10" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD11").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/11.jpg" width="295" height="351" alt="2D11" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD12").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/12.jpg" width="448" height="258" alt="2D12" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD13").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/13.jpg" width="343" height="350" alt="2D13" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD14").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<img src="Images/2DZoom/14.jpg" width="392" height="320" alt="2D14" />';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});
	JQuery("#TwoD15").click(function(){
		//Put Style On Load (7.php)
		JQuery("#TwoDZoomDiv").css("position","absolute");
		JQuery("#TwoDZoomDiv").css("top","18%");
		JQuery("#TwoDZoomDiv").css("left","30%");
		//Assign Zoom Image
		document.getElementById("TwoDBoxContentDiv").innerHTML='<div><object width="460" height="335"><param name="movie" value="Images/2DZoom/15.swf"></param><embed src="Images/2DZoom/15.swf" type="application/x-shockwave-flash"  width="460" height="335"></embed></object></div>';
		//Show Div
		JQuery("#TwoDZoomDiv").show();
	});



	//=======================================
	//Contact Form Code:
	//Hide Dive On Load 
	//Validate Email
	function isEmail(string) {
		return (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1);
	}
	//Function
	JQuery("#Send_Contact_MSG").click(function(){
		//AJAX script goes here
		var xmlhttp;
		if (document.getElementById("FullName_TXT").value.length==0 || document.getElementById("Email_TXT").value.length==0 || document.getElementById("Subject_TXT").value.length==0 || document.getElementById("Message_TXT").value.length==0 || document.getElementById("Captcha_TXT").value.length==0){ 
			document.getElementById("Result").innerHTML="Please Fill All Fields.";
			return;
		}else if(document.getElementById("Captcha_TXT").value != document.getElementById("CptchIMG").alt){
			document.getElementById("Result").innerHTML="Please Enter The Correct Number.";
			return;
		}else if(isEmail(document.getElementById("Email_TXT").value)==false){
			document.getElementById("Result").innerHTML="Please Enter A Vaild Email.";
			return;
		}else{
			JQuery("#MainDiv2").fadeIn('slow');
			JQuery("#MainDiv1").hide();
			//----------------------------
			if (window.XMLHttpRequest){
			// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp=new XMLHttpRequest();
			}else{
				// code for IE6, IE5
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange=function(){
				if (xmlhttp.readyState==4 && xmlhttp.status==200){
					document.getElementById("Result4").innerHTML=xmlhttp.responseText;
				}
			}
			xmlhttp.open("GET","ContactActions.php?Name="+document.getElementById("FullName_TXT").value+"&Email="+document.getElementById("Email_TXT").value+"&Subject="+document.getElementById("Subject_TXT").value+"&Message="+document.getElementById("Message_TXT").value,true);
			xmlhttp.send();
		}
		
	});
	//----------------------------
	
});
