/*_______________________________________________________________________________
Country Selection 
Drop Down
//_______________________________________________________________________________
Functionalities:

Notes:
//_______________________________________________________________________________
Script Nowsolutions 24.05.10
//_______________________________________________________________________________*/

$(document).ready(function(){
	var idSel	=	$("#selcountry");
	
	$(document.body).prepend('<div id="listcountry"><p>SELECT A REGION</p><ul><li><a href="http://www.frenchconnection.com/index.htm?countryselect=fcuk">UK &amp; EUROPE</a></li><li><a href="http://www.frenchconnection.com/index.htm?countryselect=fcus">USA</a></li><li><a href="http://www.frenchconnection.com/index.htm?countryselect=fcca">CANADA</a></li><li class="defaultcountry"><img src="http://www.frenchconnection.com.au/www/155/files/2010-ss-fc-tickmark.gif" /><a href="http://www.frenchconnection.com/index.htm?countryselect=fcau">AUSTRALIA</a></li><li><a href="http://frenchconnection.in/">INDIA</a></li></ul><div id="closelist"><p>CLOSE</p></div></div>')
	
	
	
	var idList	=	$("#listcountry");
	var showSel	=	false;	
	var tTimer 	= 	0;
	
	var idClose = $("#closelist");
        
	
	idSel.click(function(event) {
		event.preventDefault();
		if(showSel){
			showSel = false;
			
			idList.animate({ 
                marginTop: "-160"
                }, 300 );
			
			idSel.removeClass('opaque_class transparent_class');
			idSel.addClass('opaque_class');
			
		}else{
			idList.animate({ 
                marginTop: "0"
                }, 300 );
			showSel = true
			idSel.removeClass('opaque_class transparent_class');
			idSel.addClass('transparent_class');
		}
	});
	
		idClose.click(function(event) {
		event.preventDefault();
		if(showSel){
			showSel = false;
			
			idList.animate({ 
                marginTop: "-160"
                }, 300 );
			
			idSel.removeClass('opaque_class transparent_class');
			idSel.addClass('opaque_class');
			
		}else{
			idList.animate({ 
                marginTop: "0"
                }, 300 );
			showSel = true
			idSel.removeClass('opaque_class transparent_class');
			idSel.addClass('transparent_class');
		}
	});

	
	
	/*tTimer = setTimeout(function () {
			idList.slideUp('fast');
	}, 1000);*/
	
	
	/*idList.bind('mouseleave', this, function (event) {
		event.preventDefault();
		if(showSel){
			showSel = false;
			idList.slideUp('fast');
		}
		
	});*/

}); 


