var win=null;function NewWindow(mypage,myname,w,h,scroll,pos){if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100}if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100}else{if((pos!="center"&&pos!="random")||pos==null){LeftPosition=0;TopPosition=20}}settings="width="+w+",height="+h+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+scroll+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings)}$(function(){if($("#flash_holder").length==0){$("body").append('<div id="flash_holder" style="display:none;"/>')}$('a[href*=".swf"]').click(function(){$("#flash_holder").flash({src:$(this).attr("href"),width:800,height:600});NewWindow("","newwindow","810","620","no","center");win.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>');win.document.write('<meta http-equiv="Content-type" content="text/html;charset=UTF-8">');win.document.write("<title>"+$(this).html()+"</title>");win.document.write('</head><body bgcolor="#000000"><div style="text-align: center;">');win.document.write($("#flash_holder").html());win.document.write("</div>");var gaCode=$("script:contains('_gat._getTracker')").html();if(gaCode!=null&&gaCode!=""){var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");win.document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));win.document.write('<script type="text/javascript">');win.document.write(gaCode);win.document.write("</script>")}win.document.write("</body></html>");win.document.close();return false})});