
browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion); 
if (browser_name == "Netscape" && browser_version < 2.0)
	{
	roll = 'false';
	}
else if (browser_name == "Netscape" && browser_version == 2.0)
	{
	roll = 'false';
	}
else if (browser_name == "Netscape" && browser_version >= 3.0)
	{
	roll = 'true';
	}
else if (browser_name == "Microsoft Internet Explorer" && browser_version <= 2.0)
	{
	roll = 'false';
	}
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0)
	{
	roll = 'true';
	}
else
	{
	roll = 'false';
	}

//*************************************************************************************

function msover2(img1,ref1,img2,ref2)
	{
		if (roll == 'true')
			{
			document.images[img1].src = ref1;
			document.images[img2].src = ref2;
			
			}
	}
	
function msout2(img1,ref1,img2,ref2)
	{
		if (roll == 'true')
			{
			document.images[img1].src = ref1;
			document.images[img2].src = ref2;
			
			}
	}
	
	//*************************************************************************************
	function msover(img,ref)
	{
		if (roll == 'true')
			{
			document.images[img].src = ref;
			}
	}
	
function msout(img,ref)
	{
		if (roll == 'true')
			{
			document.images[img].src = ref;
			}
	}
	
	
//pop window _ call up the functions using this >> <A href="javascript:pop('pop/breath.html', 300, 400)">breath</a> <<
IE = navigator.appName=="Microsoft Internet Explorer";
NS = navigator.appName=="Netscape";
browsertype = parseInt(navigator.appVersion);

var newWin=null;

function pop(loc, width, height) {
        var _params = "width="+width+",height="+height+",resizable=no,status=yes,scrollbars=yes";

        // CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
        if (browsertype >= 4) {
                 _left = ( (screen.width+150) >>1 );
                 _top = ( (screen.height-700) >>1 );
        } else {
                 _left = ( (800-250) >>1 );
                 _top = ( (600-400) >>1 );
        }

        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;

        newWin = window.open(loc, name, _params);
        if ( newWin!=null && !(IE && browsertype<5) )
                newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS

}




//my pop up
function rahimi_small(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,width=300,height=320');
}

function rahimi_mid(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,width=350,height=500');
}

function rahimi_large(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,width=518,height=417');
}

function rahimi_vip(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,width=480,height=400');
}

