function orderPop(){
	alert('This feature has been disabled in this archived version.');
}

function externalLinks() { 
	if (!document.getElementsByTagName){
		return true;	
	}
	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++){ 
		var anchor = anchors[i]; 
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external"){ 
			anchor.target = "_blank"; 
		} 
	}
}

function sizeFor(style){

	var real_h = Element.getHeight('wrapper');
	var real_w = Element.getWidth('wrapper');
	
	var wdif = 0;
	var hdif = 0;
	
	var w = 760;
	
	if(style == "html"){
		var h = 550;
	}else{
		var h = 500;
	}
	
	wdif = w - real_w;
	hdif = h - real_h;

	window.resizeBy(wdif,hdif);
}

function init(){	
	externalLinks();
	
	var showhtml = getQueryParamValue('showhtml');
	if(showhtml == "true"){
		sizeFor('html');
		return;
	}
	
	var so = new SWFObject("mskcc.swf", "flashmovie", "760", "500", "8", "#FFFFFF");
	var isgood = so.write("wrapper");
	if(!isgood){
		sizeFor('html');
	}else{
		sizeFor('flash');
	}	
}

window.onload = init;



