$(document).ready(function(){		
	if(($.browser.msie) && (parseInt(jQuery.browser.version)==6)) {
	  var cssStyle = {
	  	'position' : 'absolute',
		'top':'25%'
	  }
	  $("#overlay-small, #overlay").css(cssStyle);
	  var GameTextStyleIE6 = {
	  	'margin-left': '235px',
		'width' : '420px'
	  }	    
		$("#gameText").css(GameTextStyleIE6);
	  var thumbTinyIE6 = {
	  	'padding-top': 		'10px',
	  	'padding-right':	'6px', 
	  	'padding-bottom': 	'10px',
		'padding-left': 	'0px'
	  }	  
	  $(".thumbTiny").css(thumbTinyIE6);
	} // end if
	$('a.newWindow').click(function(){
		window.open(this.href);
		return false;
	});
	$(".screen1").click(function(){ 
		$("#overlay").show("scale","fast").html('<img src="images/ss1.jpg" alt="Coconut Queen Game Screenshot 1"/>');
	});		
	$(".screen2").click(function(){ 
		$("#overlay").show("scale","fast").html('<img src="images/ss2.jpg" alt="Coconut Queen Game Screenshot 2"/>');
	});	
	$(".screen3").click(function(){ 
		$("#overlay").show("scale","fast").html('<img src="images/ss3.jpg" alt="Coconut Queen Game Screenshot 3"/>');
	});	
	$("#overlay").click(function(){
		$(this).hide("scale","slow");
	})
	$("#rt-instruction").click(function(){
		$("#overlay-small").html('<img src="images/ringtones-howto.png"/>');
		$("#overlay-small").show("scale","fast");	
	});	
	$("#overlay-small").click(function(){
		$(this).hide("scale","slow");
	})	
	$("#watchvideo").click(function(){
		$("#overlay-small").html('<img src="images/spacer.png" height="39" width="20"/><br/><object width="320" height="265"><param name="movie" value="http://www.youtube.com/v/EO8nX0nkE6s&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/EO8nX0nkE6s&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="265"></embed></object>');
		$("#overlay-small").show("scale","fast");	
	});	
}); // end: document ready