	// JavaScript Document
	//swfobject
	var flashvars = {};
	var params = {};
	var attributes = {};
	params.wmode = "transparent";
	/*var rnd  = new Date().getTime(); 
	swfobject.embedSWF("main.swf?r="+rnd, "flashcontent", "100%", "100%", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
	swfobject.embedSWF("images/chains.swf", "chains-swf", "378", "277", "9.0.0", false, flashvars, params, attributes);
*/
	/*swfobject.embedSWF("images/lara-scandar.swf", "logo-swf", "398", "277", "9.0.0", false, flashvars, params, attributes);
	swfobject.embedSWF("images/bg.swf", "bg-swf", "990", "719", "9.0.0", false, flashvars, params, attributes);
*/
	/*//facebook
	FB.init({
		appId  : '205672982811025',
		status : true, // check login status
		cookie : true, // enable cookies to allow the server to access the session
		xfbml  : true  // parse XFBML
	});*/

	//Forms
	function clearText(txtBox)
	{
		if(txtBox.value == "Enter your e-mail")
		txtBox.value="";
	}
	function setText(txtBox, textLabel)
	{
		if(txtBox.value == "")
		txtBox.value=textLabel;
	}
	//Overlay
	function initPlayer() {
		// install flowplayer into flowplayer container
		
		var player = $("overlay-holder");
		
		// setup button action. it will fire our overlay 
		$("a[rel]").overlay({
			
			// use the Apple effect for overlay
			effect: 'apple',		
			expose: "#000",
			
			// when overlay is opened, load our player
			onLoad: function() {
				//player.load();
			},
			
			// when overlay is closed, unload our player
			onClose: function() {
				//player.unload();
				//alert(window.location);
				//window.location.reload();
				var f = document.getElementById('overlay-holder');
				f.src = f.src; 
				//alert(f.src);
			}
		});
	}
			

