/* Mtg.Bore.Org JavaScripts */
var gatherer = "gatherer.wizards.com";
function wpopup (cardname) { 	 
    agent = navigator.userAgent;
    windowName = "Sitelet";
    params  = "";
    params += "toolbar=1,";
    params += "location=1,";
    params += "directories=0,";
    params += "status=0,";
    params += "menubar=0,";
    params += "scrollbars=1,";
    params += "resizable=1,";
    params += "width=800,";
    params += "height=670";
    var useName = cardname.replace(/_/g, " ");
    useName = useName.replace(/\]/g, "&");
    useName = useName.replace(/\[/g, "'");
    win = window.open("http://"+gatherer+"/Pages/Card/Details.aspx?name="+useName, windowName, params);
}

function openWindow(tURL,wName,features) {
  window.open(tURL,wName,features);
}

function openFixed(tURL) {	
 window.open(tURL,'editor','scrollbars=no,width=600,height=240');
}


function openDraft(tURL) {	
 window.open(tURL,'editor','scrollbars=no,width=900,height=630');
}

	function nayta(lappu) 
	{
		document.bigcard.src = lappu;
	}