function MM_CheckFlashVersion(reqVerStr,msg){with(navigator){var isIE=appVersion.indexOf("MSIE")!=-1&&userAgent.indexOf("Opera")==-1;var isWin=appVersion.toLowerCase().indexOf("win")!=-1;if(!isIE||!isWin){var flashVer=-1;if(plugins&&plugins.length>0){var desc=plugins["Shockwave Flash"]?plugins["Shockwave Flash"].description:"";desc=plugins["Shockwave Flash 2.0"]?plugins["Shockwave Flash 2.0"].description:desc;if(desc=="")flashVer=-1;else{var descArr=desc.split(" ");var tempArrMajor=descArr[2].split(".");var verMajor=tempArrMajor[0];var tempArrMinor=descArr[3]!=""?descArr[3].split("r"):descArr[4].split("r");var verMinor=tempArrMinor[1]>0?tempArrMinor[1]:0;flashVer=parseFloat(verMajor+"."+verMinor)}}else if(userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=4;var verArr=reqVerStr.split(",");var reqVer=parseFloat(verArr[0]+"."+verArr[2]);if(flashVer<reqVer){if(confirm(msg))window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"}}}}function hideem(a,b,c){document.write('<a href="'+"mai"+"lto:"+a+"@"+b+"."+c+'">'+a+"@"+b+"."+c+"</a>")}function GetCookie(a){var b="";var c=" "+document.cookie+";";var d=" "+a+"=";var e=c.indexOf(d);var f;if(e!=-1){e+=d.length;f=c.indexOf(";",e);b=unescape(c.substring(e,f))}return b}function submitForm(a){expireDate=new Date;expireDate.setMonth(expireDate.getMonth()+6);document.cookie="firstName="+escape(a.First_Name.value)+";expires="+expireDate.toGMTString();document.cookie="lastName="+escape(a.Last_Name.value)+";expires="+expireDate.toGMTString();document.cookie="company="+escape(a.Company.value)+";expires="+expireDate.toGMTString();document.cookie="email="+escape(a.Email.value)+";expires="+expireDate.toGMTString();document.cookie="Title="+escape(a.title.value)+";expires="+expireDate.toGMTString();document.cookie="Address1="+escape(a.address1.value)+";expires="+expireDate.toGMTString();document.cookie="Address2="+escape(a.address2.value)+";expires="+expireDate.toGMTString();document.cookie="City="+escape(a.city.value)+";expires="+expireDate.toGMTString();document.cookie="State="+escape(a.state.value)+";expires="+expireDate.toGMTString();document.cookie="Zip="+escape(a.zip.value)+";expires="+expireDate.toGMTString();document.cookie="phone="+escape(a.Phone.value)+";expires="+expireDate.toGMTString();document.cookie="country="+escape(a.Country.value)+";expires="+expireDate.toGMTString()}function submit_meeting_request(a){expireDate=new Date;expireDate.setMonth(expireDate.getMonth()+6);document.cookie="firstName="+escape(a.First_Name.value)+";expires="+expireDate.toGMTString();document.cookie="lastName="+escape(a.Last_Name.value)+";expires="+expireDate.toGMTString();document.cookie="company="+escape(a.Company.value)+";expires="+expireDate.toGMTString();document.cookie="email="+escape(a.Email.value)+";expires="+expireDate.toGMTString();document.cookie="Title="+escape(a.Title.value)+";expires="+expireDate.toGMTString();document.cookie="Address1="+escape(a.address1.value)+";expires="+expireDate.toGMTString();document.cookie="Address2="+escape(a.address2.value)+";expires="+expireDate.toGMTString();document.cookie="City="+escape(a.city.value)+";expires="+expireDate.toGMTString();document.cookie="State="+escape(a.state.value)+";expires="+expireDate.toGMTString();document.cookie="Zip="+escape(a.zip.value)+";expires="+expireDate.toGMTString();document.cookie="phone="+escape(a.Phone.value)+";expires="+expireDate.toGMTString();document.cookie="country="+escape(a.Country.value)+";expires="+expireDate.toGMTString();MM_validateForm("First_Name","","R","Last_Name","","R","Email","","RisEmail","Phone","","R","Title","","R","Company","","R","First_Choice_Meeting_Time","","R","Second_Choice_Meeting_Time","","R","Project_Description","","R");return document.MM_returnValue}function submit_core_query_Form(a){submitForm(a);MM_validateForm("First_Name","","R","Last_Name","","R","Cores","","R","Email","","RisEmail","Phone","","R","Company","","R");return document.MM_returnValue}function submit_synplicity_Form(a){MM_validateForm("name","","R","company","","R","country","","R","email","","RisEmail","phone","","R","zip","","R");return document.MM_returnValue}function formReset(){alert("in formReset again");document.newsletter_request.user_phone.value="";alert("in formReset again again")}function reset_altera_ids(){document.opencore_request.NIC.value="";document.opencore_request.NIC.disabled=true;document.opencore_request.NIC.style.backgroundColor="#cccccc";document.opencore_request.Host_Id.disabled=true;document.opencore_request.Host_Id.value="";document.opencore_request.Host_Id.style.backgroundColor="#cccccc";document.opencore_request.Disk_Serial_Number.disabled=true;document.opencore_request.Disk_Serial_Number.value="";document.opencore_request.Disk_Serial_Number.style.backgroundColor="#cccccc";document.opencore_request.Guard_Id.disabled=true;document.opencore_request.Guard_Id.value="";document.opencore_request.Guard_Id.style.backgroundColor="#cccccc";document.opencore_request.License.disabled=true;document.opencore_request.License.value="";document.opencore_request.License.style.backgroundColor="#cccccc"}function submit_altera_opencore_Form(a){submitForm(a);MM_validateForm("First_Name","","R","Last_Name","","R","Cores","","R","Email","","RisEmail","Phone","","R","Company","","R","Core_Name","","R","Altera_Device_Name","","R","Quartus_Version","","R","NIC","","R","Host_Id_Serial_Number","","R","Guard_Id_License","","R");return document.MM_returnValue}function submit_altera_opencore_Form2(a){submitForm(a);var b;b=false;if(a.altera_id[0].checked){b=true;if(a.NIC.value==""){alert("A valid identification number is required.\n");return false}}else if(a.altera_id[1].checked){b=true;if(a.Host_Id.value==""){alert("A valid identification number is required.\n");return false}}else if(a.altera_id[2].checked){b=true;if(a.Disk_Serial_Number.value==""){alert("A valid identification number is required.\n");return false}}else if(a.altera_id[3].checked){b=true;if(a.Guard_Id.value==""){alert("A valid identification number is required.\n");return false}}else if(a.altera_id[4].checked){b=true;if(a.License.value==""){alert("A valid identification number is required.\n");return false}}if(b==false){alert("A valid identification number is required.\n");return false}MM_validateForm("First_Name","","R","Last_Name","","R","Cores","","R","Email","","RisEmail","Phone","","R","Company","","R","Core_Name","","R","Altera_Device_Name","","R");return document.MM_returnValue}function MM_validateForm(){var a,b,c,d,e,f,g,h,i="",j=MM_validateForm.arguments;for(a=0;a<j.length-2;a+=3){e=j[a+2];val=MM_findObj(j[a]);if(val){d=val.name;if((val=val.value)!=""){if(e.indexOf("isEmail")!=-1){b=val.indexOf("@");if(b<1||b==val.length-1)i+="- "+d+" must contain an e-mail address.\n"}else if(e!="R"){f=parseFloat(val);if(isNaN(val))i+="- "+d+" must contain a number.\n";if(e.indexOf("inRange")!=-1){b=e.indexOf(":");g=e.substring(8,b);h=e.substring(b+1);if(f<g||h<f)i+="- "+d+" must contain a number between "+g+" and "+h+".\n"}}}else if(e.charAt(0)=="R")i+="- "+d+" is required.\n"}}if(i)alert("The following error(s) occurred:\n"+i);document.MM_returnValue=i==""}function MM_setTextOfTextfield(a,b,c){var d=MM_findObj(a);if(d)d.value=c}function findRequestingCore(){var a=location.search;var b=a.indexOf("corename=");if(b!=-1){var c=a.indexOf("&",b+9);var d=a.substring(b+9,c)}else{var d=""}return d}function MM_callJS(jsStr){return eval(jsStr)}function MM_swapImage(){var a,b=0,c,d=MM_swapImage.arguments;document.MM_sr=new Array;for(a=0;a<d.length-2;a+=3)if((c=MM_findObj(d[a]))!=null){document.MM_sr[b++]=c;if(!c.oSrc)c.oSrc=c.src;c.src=d[a+2]}}function MM_preloadImages(){var a=document;if(a.images){if(!a.MM_p)a.MM_p=new Array;var b,c=a.MM_p.length,d=MM_preloadImages.arguments;for(b=0;b<d.length;b++)if(d[b].indexOf("#")!=0){a.MM_p[c]=new Image;a.MM_p[c++].src=d[b]}}}function MM_swapImgRestore(){var a,b,c=document.MM_sr;for(a=0;c&&a<c.length&&(b=c[a])&&b.oSrc;a++)b.src=b.oSrc}function check_core_page(){if(core_index==1){MM_showHideLayers("coresmenu","","hide","modelsmenu","","hide","infomenu","","hide","cores2","","show")}else{MM_showHideLayers("coresmenu","","show","modelsmenu","","hide","infomenu","","hide","cores2","","hide")}}function set_page_variables(){core_index=0;model_index=0;info_index=0;input_string=document.location.toString();if(input_string.indexOf("cores/index")>=0){core_index=1;MM_nbGroup("over","cores","file:///C|/graphics/nav/coresbtn_f2.gif","",1);check_core_page()}if(input_string.indexOf("models/index")>=0)model_index=1;if(input_string.indexOf("info/index")>=0)info_index=1}function closeNewWindow(){if(newWindow){newWindow.close();newWindow=null}}function MM_openBrWindow(a,b,c){newWindow=window.open(a,b,c);newWindow.focus();return newWindow}function MM_showHideLayers(){var a,b,c,d,e=MM_showHideLayers.arguments;for(a=0;a<e.length-2;a+=3)if((d=MM_findObj(e[a]))!=null){c=e[a+2];if(d.style){d=d.style;c=c=="show"?"visible":(c="hide")?"hidden":c}d.visibility=c}}function MM_reloadPage(init){if(init==true)with(navigator){if(appName=="Netscape"&&parseInt(appVersion)==4){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload()}function MM_nbGroup(a,b){var c,d,e,f=MM_nbGroup.arguments;if(a=="init"&&f.length>2){if((d=MM_findObj(f[2]))!=null&&!d.MM_init){d.MM_init=true;d.MM_up=f[3];d.MM_dn=d.src;if((e=document[b])==null)e=document[b]=new Array;e[e.length]=d;for(c=4;c<f.length-1;c+=2)if((d=MM_findObj(f[c]))!=null){if(!d.MM_up)d.MM_up=d.src;d.src=d.MM_dn=f[c+1];e[e.length]=d}}}else if(a=="over"){document.MM_nbOver=e=new Array;for(c=1;c<f.length-1;c+=3)if((d=MM_findObj(f[c]))!=null){if(!d.MM_up)d.MM_up=d.src;d.src=d.MM_dn&&f[c+2]?f[c+2]:f[c+1];e[e.length]=d}}else if(a=="out"){for(c=0;c<document.MM_nbOver.length;c++){d=document.MM_nbOver[c];d.src=d.MM_dn?d.MM_dn:d.MM_up}}else if(a=="down"){if((e=document[b])!=null)for(c=0;c<e.length;c++){d=e[c];d.src=d.MM_up;d.MM_dn=0}document[b]=e=new Array;for(c=2;c<f.length-1;c+=2)if((d=MM_findObj(f[c]))!=null){if(!d.MM_up)d.MM_up=d.src;d.src=d.MM_dn=f[c+1];e[e.length]=d}}}function P7_getHW(a,b){var c,d,e=0,f=0;if((d=MM_findObj(b))!=null){if(document.all||document.getElementById){e=parseInt(d.offsetHeight);f=parseInt(d.offsetWidth);if(!e){e=parseInt(d.style.pixelHeight);f=parseInt(d.style.pixelWidth)}}else if(document.layers){e=parseInt(d.clip.height);f=parseInt(d.clip.width)}}if(a=="width"){c=f}else{c=e}return c}function dpSmartLink(a,b,c,d,e){var f,g,h,i,j,k="";if(!b){b=""}if(c){k+="width="+c+","}if(d){k+="height="+d+","}if(e){e=e.split(":");if(e[0]!="z"){e[0]=="c"?i=(screen.width-c)/2:i=e[0];k+="left="+i+","}if(e[1]!="z"){if(e[0]=="c"){j=(screen.height-d-e[1])/2;if(navigator.appName.indexOf("Op")!=-1){j-=96;j=j<0?0:j}}else{j=e[1]}k+="top="+j+","}}f=arguments.length;if(f>5){for(h=5;h<f;h++){switch(arguments[h]){case"all":k+="toolbar,menubar,location,scrollbars,status,resizable,";break;case"t":k+="toolbar,";break;case"m":k+="menubar,";break;case"l":k+="location,";break;case"sc":k+="scrollbars,";break;case"s":k+="status,";break;case"r":k+="resizable,"}}}if(k.charAt(k.length-1)==","){k=k.slice(0,-1)}g=window.open(a,b,k);g.focus();document.MM_returnValue=false}function MM_findObj(a,b){var c,d,e;if(!b)b=document;if((c=a.indexOf("?"))>0&&parent.frames.length){b=parent.frames[a.substring(c+1)].document;a=a.substring(0,c)}if(!(e=b[a])&&b.all)e=b.all[a];for(d=0;!e&&d<b.forms.length;d++)e=b.forms[d][a];for(d=0;!e&&b.layers&&d<b.layers.length;d++)e=MM_findObj(a,b.layers[d].document);if(!e&&b.getElementById)e=b.getElementById(a);return e}var newWindow;var core_index;var model_index;var info_index;var input_string;var requested_core=" ";MM_reloadPage(true);var user;var domain;var suffix;$(document).ready(function(){$("#bar .query-button").hover(function(){$("#queryhdr").attr({src:"http://www.cast-inc.com/graphics/page/query-btn_f2.png"});$(this).addClass("hover")},function(){$("#queryhdr").attr({src:"http://www.cast-inc.com/graphics/page/query-btn.png"});$(this).removeClass("hover")})});$(function(){$(".get-info a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,position:"top",resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d);return false})});$(function(){$(".site-info a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d)})});$(function(){$(".learn-more a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;if(f>450){f=450}$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d)})});$(function(){$(".learn-xilinx a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;if(f>300){f=300}$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d)})});$(function(){$(".learn-aldec a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;if(f>150){f=150}$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d)})});$(function(){$(".silicon-choices a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d)});$(".silicon-overview a").click(function(a){a.preventDefault();var b=$(this);var c=30;var d=30;var e=$(window).width()*.9;var f=$(window).height()*.9;$('<iframe id="externalSite" class="externalSite" src="'+this.href+'" />').dialog({title:b.attr("title")?b.attr("title"):"External Site",autoOpen:true,width:e,height:f,minWidth:0,minHeight:0,modal:true,resizable:true,autoResize:true,overlay:{opacity:.5,background:"black"}}).width(e-c).height(f-d)})})
