
function disp(d,n){
	var id = 'top';
	var DOM = false;
	if (document.getElementById && document.getElementById(id) && document.getElementById(id).style){
		DOM = true;
	}
	if(DOM){
		for(i = 1; i <= n ;i++){
			document.getElementById("detail"+i).style.display="none";
		}
		document.getElementById("detail"+d).style.display="block";
	}else{
		for(i = 1; i <= n ;i++){
			document.all.item("detail"+i).style.display="none";
		}
		document.all.item("detail"+d).style.display="block";
	}
}

function embed(fla) {
	if(fla == 'top'){
		document.write('<embed src="images/top2.swf" quality="best" pluginspage="http://www.adobe.com/shockwave/download/" type="application/x-shockwave-flash" ');
		document.write('width="812" height="477" alt=" " bgcolor="000000" ></embed>');
	}
	if(fla == 'concept'){
		document.write('<embed src="../images/concept.swf" quality="best" pluginspage="http://www.adobe.com/shockwave/download/" type="application/x-shockwave-flash" ');
		document.write('width="300" height="400" alt=" " bgcolor="B6B6B6" ></embed>');
	}
	if(fla == 'shop'){
		document.write('<embed src="../images/shop.swf" quality="best" pluginspage="http://www.adobe.com/shockwave/download/" type="application/x-shockwave-flash" ');
		document.write('width="300" height="320" alt=" " bgcolor="B6B6B6" ></embed>');
	}
	if(fla == 'wedding'){
		document.write('<embed src="../images/wedding2.swf" quality="best" pluginspage="http://www.adobe.com/shockwave/download/" type="application/x-shockwave-flash" ');
		document.write('width="300" height="390" alt=" " bgcolor="B6B6B6" ></embed>');
	}

}

function OpenWin(url,type){
	if(type == 0){
		win=window.open(url,"_blank","top=0,left=0,width=420,height=605,titlebar=0,directories=0,status=0,scrollbars=0,menubar=0,location=0,toolbar=0,resizable=0");
	}
	if(type == 1){
		win=window.open(url,"new","top=0,left=0,width=605,height=480,titlebar=0,directories=0,status=0,scrollbars=0,menubar=0,location=0,toolbar=0,resizable=0");
	}
}


function pageTopScroll() {
	var scrj = 1;
	var scdist = document.body.parentNode.scrollTop;
	if(scrj<50 && scdist) {
		scdist = (scdist>2) ? Math.ceil(scdist*.2) : 1;
		scrj++;
		scrollBy(0,-scdist);
		setTimeout("pageTopScroll()",20);
	} else {
		scrollTo(0,0);
		scrj = 1;
	}
}

