function pWinVanilla(url, winname, wwidth, wheight, resize) {

	newWindow = window.open(url, winname, "width="+wwidth+",height="+wheight+",toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,copyhistory=0,resizable="+resize);

	newWindow.focus();

}

//index carpricemovement tabs functions
function showDecrease(){
	document.getElementById('decrease').style.display='block'; 
	document.getElementById('increase').style.display='none';
	document.getElementById('tab_decrease').className='select';
	document.getElementById('tab_increase').className='';
}
function showIncrease(){
	document.getElementById('decrease').style.display='none'; 
	document.getElementById('increase').style.display='block'
	document.getElementById('tab_decrease').className='left';
	document.getElementById('tab_increase').className='select';	
}


//iphone banner on the header
function animateDown(){
		$('#bannerAppContent').stop().animate({"top": "0px"}, "fast");
		$('#download').stop().animate({opacity:0}, "slow");
		$('#click').stop().animate({opacity:1}, "slow");			
	}

function animateIphone(){
		$('#bannerAppContent').stop().animate({"top": "-25px"}, "slow");
		$('#click').stop().animate({opacity: 0}, "slow");
		$('#download').stop().animate({opacity:1}, "slow"),function(){animateDown();}
	}

function animateDownCatfish(){
		$("#catfish").animate({"top": "0px"}, "slow");
		$("#closeCatfish").animate({opacity:0},"slow");
	}

function animateUpCatfish(){
		$("#catfish").animate({"top": "-129px"}, "slow");
		$("#closeCatfish").animate({opacity:1}, "slow");
	}

/****** old code foe iphone app banner *******
	$(document).ready(function(){
	$('#bannerApp').hover(function() {
		$('#bannerAppContent').stop().animate({"top": "-25px"}, "slow");
		$('#click').stop().animate({opacity: 0}, "slow");
		$('#download').stop().animate({opacity:1}, "slow");
		//var wait = setInterval(function() {
			//if( !$("#click").is(":animated")) {
				//clearInterval(wait);
				//$('#download').stop().animate({opacity:1}, "fast");
			//}
		//}, 200);		
	}, function() {
		$('#bannerAppContent').stop().animate({"top": "0px"}, "fast");
		$('#download').stop().animate({opacity:0}, "slow");
		$('#click').stop().animate({opacity:1}, "slow");			
	})
});*/

