// Java Document
$(document).ready(function(){
	/***********************************************************************************************
	HEADER LOAD COMPLETE
	***********************************************************************************************/
	atpage = 2;
	
	//$('#txtissue').LoadIssue($('#txtissue'));
	
	/***********************************************************************************************
	SUB SCRIBE
	***********************************************************************************************/	
	$('#mainsubscribemail').attr('value', 'Enter your email');
	$('#mainsubscribemail').click(function(){ $(this).attr('value', ''); });
	
	$('#submitsubscribe').click(function(){
		$.subscribed($('#frmmainsubscribe'));
	});

	/***********************************************************************************************
	Beauty Load infomations : main/sub/fort
	***********************************************************************************************/
	
	$('#productoftheweekmain').chictemplateT2StyleH($('#productoftheweekmain'), 2, 9);
	$('#productoftheweek').chictemplateT2StyleG($('#productoftheweek'), 2, 9);
	$('#getthelookmain').chictemplateT2StyleH($('#getthelookmain'), 2, 10);
	$('#getthelook').chictemplateT2StyleG($('#getthelook'), 2, 10);
	$('#beautyiconmain').chictemplateT2StyleH($('#beautyiconmain'), 2, 11);
	$('#beautyicon').chictemplateT2StyleG($('#beautyicon'), 2, 11);
	$('#beautyfeaturemain').chictemplateT2StyleH($('#beautyfeaturemain'), 2, 12);
	$('#beautyfeature').chictemplateT2StyleG($('#beautyfeature'), 2, 12);
	
	$('#spasalonmain').chictemplateT2StyleI($('#spasalonmain'), 2,13);
	$('#spasalon').chictemplateT2StyleG($('#spasalon'), 2, 13);
	
	$('#groominghimmain').chictemplateT2StyleH($('#groominghimmain'), 2, 14);
	$('#groominghim').chictemplateT2StyleG($('#groominghim'), 2, 14);
	
	$('#faqBoxContent').chictemplateT2FAQ( $('#faqBoxContent'), 2, 16 );
	$('#skintalkBoxContent').chictemplateT2StyleESkinTalk( $('#skintalkBoxContent'), 2, 57 );
	$('#skintalkList').chictemplateT2StyleG($('#skintalkList'), 2, 57);


	/***********************************************************************************************
	PNG LOAD DONE
	***********************************************************************************************/		
	$('div#approve').css({ 'display':'block' });
	
	/***********************************************************************************************
	Load position 
	***********************************************************************************************/
	calculatorWindow();
	
	/* Approve Logo */
	var approveoffset = $('div#beautytxtissue').offset();
	var approvetop    = (approveoffset.top  + 20) + 'px';
	var approveleft   = (approveoffset.left + 120)  + 'px';
	
	if(!isNone(approvetop) && !isNone(approveleft))
		$('div#approve').css({ 'top':approvetop, 'left':approveleft });
	
	/***********************************************************************************************
	Event Load PNG FIX
	***********************************************************************************************/
	$(function(){$('div#maincontent').pngFix();});
	
});

	function calculatorWindow(){
		/* Approve Logo */
		var approveoffset = $('div#beautytxtissue').offset();
		var approvetop    = (approveoffset.top  + 20) + 'px';
		var approveleft   = (approveoffset.left - 60) + 'px';
		
		if(!isNone(approvetop) && !isNone(approveleft))
			$('div#approve').css({ 'top':approvetop, 'left':approveleft });
		
		setTimeout("calculatorWindow()", 500);
	}	

