var $g=jQuery.noConflict();    
$g(document).ready(function() 
{

	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
/*	
	if(!stristr(sPath,"checkout") && !stristr(sPath,"customer") && !stristr(sPath,"sendfriend") && !stristr(sPath,"contact-us"))
	{
	
		$g('.required').html('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
		$g('.required').hover(
		function() {
		this.tip = this.title;
		$g(this).append(
			'<div class="toolTipWrapper">'
				+'<div class="toolTipTop">What is this?</div>'
				+'<div class="toolTipMid">You choose what quality of flowers you want. It can be the best we have or something less expensive or just what you see in the picture'
					+this.tip
				+'</div>'
				+'<div class="toolTipBtm"></div>'
			+'</div>'
		);
		this.title = "";
		this.width = $g(this).width();
		$g(this).find('.toolTipWrapper').css({left:this.width-140})
		$g(this).find('.toolTipWrapper').css({top:this.width-250})
		$g('.toolTipWrapper').fadeIn(300);
	},
	function() {
		$g('.toolTipWrapper').fadeOut(100);
		$g(this).children().remove();
			this.title = this.tip;
		}
	);

	}
*/
	var id=$g('.goptionid').val();	
  	$g('#options_'+id+'_2').attr('checked', 'checked');


	
	//change the drop down on the view product page to As Pictured
	//$g('#select_1 :selected').text("As Pictured");
	
	//display the slideshow on the index page
	if(sPage=="")
	{	
		$g('#gslideshow').cycle({
			fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		});		
	}

	var mainh=$g('.main').height();

	$g('.col-main').css("height",mainh);
	$g('.col-left').css("height",mainh);
	$g('.col-right').css("height",mainh);
	

});

function stristr (haystack, needle) {

    var pos = 0;

    haystack += '';
    pos = haystack.toLowerCase().indexOf( (needle).toLowerCase() );
    if (pos == -1){
        return false;
    } else{
        return true
    }
}


