//Back to top slider

jQuery(document).ready(function() {
   
    jQuery('a[href=#totop]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });

});

// Product Slider

jQuery(document).ready(function() {
    jQuery('#featured-products').jcarousel();
});

// FancyBox jQuery

jQuery(document).ready(function() {
		
			 jQuery("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true }); 
		});

// Slider Homepage
jQuery(document).ready(function(){	
	jQuery("#slider").easySlider({
		auto: true,
		continuous: true,
		numeric: true
	});
});


// NEW FIEL.!

function alertme() 
{
alert('hey');
}

function setIFrameParms() 
{ 
    //call function to get url querystring 
    var pStr = getUrlParmsStr(); 
    
    if(window.frames['submitFormIframe'].location.href.indexOf('?') == -1) 
        window.frames['submitFormIframe'].location.href = 
        window.frames['submitFormIframe'].location.href + "?" + pStr;        
};

//this function returns string of the url querystring 
function getUrlParmsStr() 
{ 
    var parmStr = '';    
    var idx = document.URL.indexOf('?'); 
    
    if (idx != -1) 
        parmStr = document.URL.substring(idx+1, document.URL.length); 

    return parmStr; 
}
