function generateQoofGuidInternal()
{
var result, i, j;
result = '';
for(j=0; j<32; j++)
{
i = Math.floor(Math.random()*16).toString(16).toUpperCase();
result = result + i;
}
result = result.substring(0,8) + "-" + result.substring(8,12) + "-" + result.substring(12,16) + "-" + result.substring(16,20) + "-" + result.substring(20,32);
return result;
}
Qoof_WidgetId = '076573d5-2c20-415f-97da-b4298cc8fe89';
Qoof_widgetWidth = '300';
Qoof_widgetHeight = '250';
Qoof_AC = '';
Qoof_AID = '';
Qoof_CT = 'http://go.k12.com/wm/tb/cons/k12/200907/orange_a/index.html';
Qoof_FV = '';
Qoof_IT = '';
function QoofWriteWidget()
{
if(typeof(Qoof_WidgetId)=="undefined") Qoof_WidgetId = '';
if(typeof(Qoof_widgetWidth)=="undefined") Qoof_widgetWidth = '300';
if(typeof(Qoof_widgetHeight)=="undefined") Qoof_widgetHeight = '250';
if(typeof(Qoof_AC)=="undefined") Qoof_AC = '';
if(typeof(Qoof_AID)=="undefined") Qoof_AID = '';
if(typeof(Qoof_CT)=="undefined") Qoof_CT = '';
if(typeof(Qoof_FV)=="undefined") Qoof_FV = '';
if(typeof(Qoof_IT)=="undefined") Qoof_IT = '';
var Qoof_HTTPReferrer = encodeURIComponent(document.location.href);
var Qoof_swf_file = 'viewer.swf';
if(Qoof_swf_file.length == 0)
{
Qoof_swf_file = 'widget.swf';
}
var Qoof_swf = 'http://flash.qoof.com/' + Qoof_swf_file + '?w=' + Qoof_WidgetId;
var Qoof_pass = '';
var Qoof_AffiliateData = '';
var Qoof_SessionId = generateQoofGuidInternal();
var queryString = '&id=' + Qoof_WidgetId +
'&w=' + Qoof_widgetWidth +
'&h=' + Qoof_widgetHeight +
'&ac=' + Qoof_AC +
'&aid=' + Qoof_AID +
'&ct=' + encodeURIComponent(Qoof_CT) +
'&fv=' + encodeURIComponent(Qoof_FV) +
'&it=' + encodeURIComponent(Qoof_IT);
if(Qoof_AC.length > 0)
{
Qoof_pass = "&pass=ac%3D" + Qoof_AC;
Qoof_AffiliateData = "&ac=" + Qoof_AC;
}
if(Qoof_AID.length > 0)
{
Qoof_pass += "%26aid%3D" + Qoof_AID;
Qoof_AffiliateData += "&aid=" + Qoof_AID;
}
if(Qoof_CT.length > 0)
Qoof_CT = "&ct=" + encodeURIComponent(Qoof_CT);
if(Qoof_FV.length > 0)
Qoof_FV = "&" + Qoof_FV;
var Qoof_ObjectTag = "
\n";
if(Qoof_IT.length > 0)
{
Qoof_ObjectTag += "
\n";
}
document.write(Qoof_ObjectTag);
}
if(Qoof_WidgetId.length > 0)
QoofWriteWidget();