// JavaScript Document
var strOS, strBrowser, strTemp;
	var wso = "";
	var winO;
	//var wso.flag;
	
	wso.flag=true;
	
	strOS = "other";
	strBrowser = "other";		
	
	strTemp = navigator.appVersion.toLowerCase();
	
	if (strTemp.indexOf("win") > 0)
		strOS = "windows";
			
	if (strTemp.indexOf("mac") > 0)
		strOS = "mac";
	
	if (strTemp.indexOf("msie") > 0)
			strBrowser = "msie";
			
if (strOS == "windows"){
	window.name ="parentwindow"
	function openWin(){	
		if (wso){
			if(wso.flag){
				if (wso.windowURL != ""){
					winO = window.open(wso.windowURL,'childwindow','toolbar=no,width=700,height=520,top=20,left=20,resizable=yes,scrollbars=yes');
					winO.focus();
				}
				wso.flag=false;
			}
		}else{
			wso = window.document.wso1;
		}
		setTimeout("openWin()",2000);
	}
}else if (strOS == "mac" || strOS == "other"){
	//Specify the marquee's width (in pixels)
	var marqueewidth=700
	//Specify the marquee's height (in pixels, pertains only to NS)
	var marqueeheight=200
	//Specify the marquee's scroll speed (larger is faster)
	var speed=8
	//Specify the marquee contents
	var marqueecontents='<a href="javascript:showPopup(\'www.diamondbride.com\')"><img src="http://www.weddingsolutions.com/wedding-gowns/images/slideshow_images/designers/pic1.jpg" border="0"></a><a href="javascript:showPopup(\'www.alfredangelo.com/index.cfm/fuseaction/collections.displayCollection/categoryID/32e5a88c-cbf1-498f-afcf-dbfca138c5d3\')"><img src="http://www.weddingsolutions.com//fashion_and_beauty/images/slideshow_images/designers/pic2.jpg" border="0"></a><a href="javascript:showPopup(\'www.alvinavalenta.com/alv/index.php\')"><img src="/fashion_and_beauty/images/slideshow_images/designers/pic3.jpg" border="0"></a><a href="javascript:showPopup(\'www.demetriosbride.com/us/index.php?page=collections_06\')"><img src="http://www.weddingsolutions.com//fashion_and_beauty/images/slideshow_images/designers/pic4.jpg" border="0"></a><a href="javascript:showPopup(\'www.edenbridals.com/index.php?cPath=28\')"><img src="http://www.weddingsolutions.com//fashion_and_beauty/images/slideshow_images/designers/pic5.jpg" border="0"></a><a href="javascript:showPopup(\'www.justinamccaffrey.com/Collections/CollectionsByStlye.htm\')"><img src="http://www.weddingsolutions.com//fashion_and_beauty/images/slideshow_images/designers/pic6.jpg" border="0"></a><a href="javascript:showPopup(\'www.lazarobridal.com/bridal/collections/index.html\')"><img src="http://www.weddingsolutions.com//fashion_and_beauty/images/slideshow_images/designers/pic7.jpg" border="0"></a><a href="javascript:showPopup(\'www.maggiesottero.com/collection.aspx\')"><img src="http://www.weddingsolutions.com/wedding-gowns/images/slideshow_images/designers/pic8.jpg" border="0"></a><a href="javascript:showPopup(\'www.mcbridals.com/gowns.asp?oSWF=true&oDB=bridal\')"><img src="http://www.weddingsolutions.com/wedding-gowns/images/slideshow_images/designers/pic9.jpg" border="0"></a><a href="javascript:showPopup(\'www.rivini.com/collection.html\')"><img src="http://www.weddingsolutions.com/wedding-gowns/images/slideshow_images/designers/pic10.jpg" border="0"></a><a href="javascript:showPopup(\'www.stpucchi.com/main.html\')"><img src="http://www.weddingsolutions.com/wedding-gowns/images/slideshow_images/designers/pic11.jpg" border="0"></a><a href="javascript:showPopup(\'www.winniecouture.com\')"><img src="http://www.weddingsolutions.com/wedding-gowns/images/slideshow_images/designers/pic12.jpg" border="0"></a>'
	
	function showPopup(url){
		winO = window.open(url,"childwindow" ,"toolbar=no,width=700,height=520,top=20,left=20,resizable=yes,scrollbars=yes");
		winO.focus();
	}
	
	function regenerate(){
		window.location.reload()
	}
	
	function regenerate2(){
		if (document.layers){
			setTimeout("window.onresize=regenerate", 450)
			intializemarquee()
		}
	}

	function intializemarquee(){
		document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
		document.cmarquee01.document.cmarquee02.document.close()
		thelength=document.cmarquee01.document.cmarquee02.document.width
		scrollit()
	}

	function scrollit(){
		if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
			document.cmarquee01.document.cmarquee02.left-=speed
			setTimeout("scrollit()",100)
		}else{
			document.cmarquee01.document.cmarquee02.left=parseInt(marqueewidth)+parseInt(speed)
			document.cmarquee01.document.cmarquee02.right=1
			scrollit()
		}
	}
}

function return_function(){		
	if (strOS == "windows"){
		if(winO){
			if(!winO.closed)
				winO.flagwinopen = false;
		}
	}else{
		if(winO){
			if(!winO.closed)
				winO.flagwinopen = false;
		}
	}
}