var _wp_filesadded = "";
var _wp_url = "http://wpplugin.cincopa.com/wpplugin/styles/";
function loadJSFile(filename)
{
if (filename.toLowerCase().indexOf("http://") == -1)
filename = _wp_url + filename;
if (_wp_filesadded.indexOf("["+filename+"]") == -1)
{
var fileref = document.createElement('script');
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", filename);
document.getElementsByTagName("head")[0].appendChild(fileref);
_wp_filesadded += "["+filename+"]";
}
}
function loadCSSFile(filename)
{
if (filename.toLowerCase().indexOf("http://") == -1)
filename = _wp_url + filename;
if (_wp_filesadded.indexOf("["+filename+"]") == -1)
{
var fileref = document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", filename);
document.getElementsByTagName("head")[0].appendChild(fileref);
_wp_filesadded += "["+filename+"]";
}
}
var _wp_override_arr = {
"j1":{
override:"w:width,h:height,thumb_size:medium* or small,content_size:large* (600x450) or xlarge (1024x768)"
},
"p3":{
override:"autostart:auto start play (true or false),w:width,dw:display width,h:height,shuffle:shuffle items (true or false),rotatetime:how long to wait for next item (in seconds),thumb_size:small* or medium,content_size:large* (600x450) or xlarge (1024x768)"
},
"p4":{
override:"autostart:auto start play (true or false),w:width,dw:display width,h:height,shuffle:shuffle items (true or false),repeat:repeat playlist (always* or single or none)"
}
};
var _wp_widget_arr = {
stylebelt2: { pm:"j1", w:200, h:150, grp:"Simple slideshow", t:"Plain rotation - Small (200x180)", ex:"10464405",
js_inc: ["belt/jquery-1.2.6.pack.js", "belt/belt.js"],
css_inc: ["belt/jq.css", "belt/jquery.lightbox-0.5.css"],
serial_js_inc: [
{ func:"$.fn.cycle", inc:"belt/jquery.cycle.all.js"},
{ func:"$.fn.lightBox05", inc:"belt/jquery.lightbox-0.5.js" }],
func:"wp_js_widget_code_belt_plain_photo"
},
stylebelt4: { pm:"j1", w:200, h:150, grp:"Simple slideshow", t:"Shuffle rotation - Small (200x180)", ex:"10464405",
js_inc: ["belt/jquery-1.2.6.pack.js", "belt/belt.js"],
css_inc: ["belt/jq.css", "belt/jquery.lightbox-0.5.css"],
serial_js_inc: [
{ func:"$.fn.cycle", inc:"belt/jquery.cycle.all.js"},
{ func:"$.fn.lightBox05", inc:"belt/jquery.lightbox-0.5.js" }],
func:"wp_js_widget_code_belt_shuffle_photo"
},
styleimagelist: { pm:"j1", w:"100%", h:"100%", grp:"Simple slideshow", t:"Image list", ex:"10464405",
js_inc: ["belt/jquery-1.2.6.pack.js", "belt/belt.js"],
css_inc: ["belt/jq.css", "belt/jquery.lightbox-0.5.css"],
serial_js_inc: [
{ func:"$.fn.lightBox05", inc:"belt/jquery.lightbox-0.5.js" }],
func:"cp_js_widget_code_imagelist"
},
/*
stylebelt1: { pm:"j1", w:600, h:175, grp:"Simple slideshow", t:"Belt - large (600x180)", ex:"10464405",
js_inc: ["belt/jquery-1.2.6.pack.js", "belt/belt.js"],
css_inc: ["belt/jq.css", "belt/jquery.lightbox-0.5.css"],
serial_js_inc: [
{ func:"$.fn.jCarouselLite", inc:"belt/jcarousellite_1.0.1.js"},
{ func:"$.fn.lightBox05", inc:"belt/jquery.lightbox-0.5.js" }],
func:"wp_js_widget_code_belt_step_photo"
},
*/
stylebelt3: { pm:"j1", w:200, h:150, grp:"Simple slideshow", t:"Cover rotation - Small (200x180)", ex:"10464405",
js_inc: ["belt/jquery-1.2.6.pack.js", "belt/belt.js"],
css_inc: ["belt/jq.css", "belt/jquery.lightbox-0.5.css"],
serial_js_inc: [
{ func:"$.fn.cycle", inc:"belt/jquery.cycle.all.js"},
{ func:"$.fn.lightBox05", inc:"belt/jquery.lightbox-0.5.js" }],
func:"wp_js_widget_code_belt_cover_photo"
},
stylep1: {
pm:"j1", w:200, h:150, grp:"Simple slideshow", t:"Plain rotation only thumbs - Small (200x180)", ex:"10464405", content_size:"large,v:3gp_lowres,a:original", type:"plain",
func:wp_js_widget_code_rotating_photo,
thumb_link:"thumbnail_url"
},
stylep3: { pm:"j1", w:600, h:450, grp:"Simple slideshow", t:"Plain rotation - Large (600x450)", ex:"10464405", popup_large:"false", thumb_link:"content_url", rotatetime:5,
js_inc: ["belt/jquery-1.2.6.pack.js", "belt/belt.js"],
css_inc: ["belt/jq.css", "belt/jquery.lightbox-0.5.css"],
serial_js_inc: [
{ func:"$.fn.cycle", inc:"belt/jquery.cycle.all.js"},
{ func:"$.fn.lightBox05", inc:"belt/jquery.lightbox-0.5.js" }],
func:"wp_js_widget_code_belt_plain_photo"
},
stylesmoothgallery: { pm:"j1", w:620, h:470, grp:"Simple slideshow", t:"Smooth Gallery - Large (600x450)", ex:"10473009", thumb_size:"small",
js_inc: ["smoothgallery/scripts/all.js"],
css_inc: ["smoothgallery/css/jd.gallery.css"],
// serial_js_inc: [
// { func:"$", inc:"smoothgallery/cincopa.js" }],
func:"wp_js_widget_code_smoothgallery"
},
stylecooliris: {
pm:"j1", w:200, h:150, grp:"Cooliris 3D fullscreen plugin", t:"Plain rotation, Cooliris on click - Small (200x180)", ex:"10464405", content_size:"xlarge,v:flv_lowres,a:original", type:"cooliris",
func:wp_js_widget_code_rotating_photo,
thumb_link:"thumbnail_url"
},
// stylep3: { pm:"j1", w:600, h:450, grp:"Simple slideshow", t:"Plain 5sec rotation - Large (600x480)", ex:"10464405", func:wp_js_widget_code_rotating_photo, thumb_link:"content_url" },
style1: { pm:"p3", w:350, h:140, dw:180, grp:"Video player 16:9", t:"Video player with menu - Small (350x140)", ex:"10474999", stretch:true },
style2: { pm:"p3", w:450, h:200, dw:260, grp:"Video player 16:9", t:"Video player with menu - Medium (450x200)", ex:"10474999", stretch:true },
style3: { pm:"p3", w:600, h:300, dw:440, grp:"Video player 16:9", t:"Video player with menu - Large (600x300)", ex:"10474999", stretch:true },
style4: { pm:"p3", w:350, h:210, dw:350, grp:"Video player 16:9", t:"Video player without menu - Small (350x210)", ex:"10474999", stretch:true },
style5: { pm:"p3", w:450, h:260, dw:450, grp:"Video player 16:9", t:"Video player without menu - Medium (450x260)", ex:"10474999", stretch:true },
style6: { pm:"p3", w:600, h:350, dw:600, grp:"Video player 16:9", t:"Video player without menu - Large (600x350)", ex:"10474999", stretch:true },
style2s: { pm:"p3", w:430, h:200, dw:240, grp:"Video player 4:3", t:"Video player with menu - Medium (430x200)", ex:"10474999" },
style3s: { pm:"p3", w:540, h:300, dw:374, grp:"Video player 4:3", t:"Video player with menu - Large (540x300)", ex:"10474999" },
style5s: { pm:"p3", w:320, h:260, dw:320, grp:"Video player 4:3", t:"Video player without menu - Medium (320x260)", ex:"10474999" },
style6s: { pm:"p3", w:440, h:350, dw:440, grp:"Video player 4:3", t:"Video player without menu - Large (440x350)", ex:"10474999" },
stylepla24: { pm:"p4", w:492, h:400, dw:0, dh:0, plw:0, grp:"Rich Player", t:"Tutorial player - Large (492x400)", ex:"10474999", playlist:"over", skin:"stijl.swf", repeat:"always", thumb_size:"medium" },
style7: { pm:"p3", w:350, h:282, dw:350, grp:"Slideshows", t:"Slideshow - Small (350x282)", ex:"10464405" },
style8: { pm:"p3", w:450, h:357, dw:450, grp:"Slideshows", t:"Slideshow - Medium (450x357)", ex:"10464405" },
style9: { pm:"p3", w:600, h:470, dw:600, grp:"Slideshows", t:"Slideshow - Large (600x470)", ex:"10464405" },
style10: { pm:"p3", w:350, h:140, dw:160, grp:"Slideshows", t:"Slideshow with menu - Small (350x140)", ex:"10464405" },
style11: { pm:"p3", w:450, h:200, dw:240, grp:"Slideshows", t:"Slideshow with menu - Medium (450x200)", ex:"10464405" },
style12: { pm:"p3", w:600, h:320, dw:400, grp:"Slideshows", t:"Slideshow with menu - Large (600x320)", ex:"10464405" },
style20: { pm:"p4", w:300, h:20, dw:0, dh:0, plw:0, grp:"Music player", t:"Music player without menu - Tiny (300x20)", ex:"10465673", playlist:"bottom", repeat:"always" },
style21: { pm:"p4", w:300, h:82, dw:0, dh:0, plw:62, grp:"Music player", t:"Music player with menu - Small (300x82)", ex:"10465673", playlist:"bottom", repeat:"always" },
style22: { pm:"p4", w:300, h:141, dw:0, dh:0, plw:121, grp:"Music player", t:"Music player with menu - Small (300x142)", ex:"10465673", playlist:"bottom", repeat:"always" },
style23: { pm:"p4", w:400, h:300, dw:0, dh:0, plw:280, grp:"Music player", t:"Music player with menu - Medium (400x300)", ex:"10465673", playlist:"bottom", repeat:"always" },
style24: { pm:"p4", w:400, h:400, dw:0, dh:0, plw:380, grp:"Music player", t:"Music player with menu - Large (400x400)", ex:"10465673", playlist:"bottom", repeat:"always" },
style20a: { pm:"p4", w:300, h:20, dw:0, dh:0, plw:0, grp:"Music player", t:"Music player auto start - Tiny (300x20)", ex:"10465673", playlist:"bottom", autostart:true, repeat:"always" }
};
function getElement(aID)
{
return (document.getElementById) ? document.getElementById(aID) : document.all[aID];
}
var _wp_widget_js_array;
if (_wp_widget_js_array == null)
_wp_widget_js_array = new Array();
function wp_get_items(id, obj)
{
if (obj != null)
_wp_widget_js_array[id].items = obj;
if (typeof _wp_widget_js_array[id].func == "string")
{
try
{
_wp_widget_js_array[id].func = eval(_wp_widget_js_array[id].func);
}
catch(ex)
{
}
if (typeof _wp_widget_js_array[id].func == "string")
{
setTimeout("wp_get_items('"+id+"')", 1000);
return;
}
}
// check
if (typeof _wp_widget_js_array[id].serial_js_inc != "undefined")
{
for(var i=0; i<_wp_widget_js_array[id].serial_js_inc.length; i++)
{
if (eval(_wp_widget_js_array[id].serial_js_inc[i].func) == null)
{
var file = _wp_widget_js_array[id].serial_js_inc[i].inc;
loadJSFile(file);
setTimeout("wp_get_items('"+id+"')", 100);
return;
}
}
}
_wp_widget_js_array[id].func(id);
}
function isiPhone()
{
return navigator.userAgent.indexOf('iPod; U; CPU') > -1 || navigator.userAgent.indexOf('iPhone; U; CPU') > -1;
}
function gotFlash()
{
if (navigator.plugins && navigator.plugins.length)
{
x = navigator.plugins["Shockwave Flash"];
if (x)
return true;
if (navigator.plugins["Shockwave Flash 2.0"])
return true;
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
x = navigator.mimeTypes['application/x-shockwave-flash'];
if (x && x.enabledPlugin)
return true;
}
else
return true;
return false;
}
function wp_js_widget_code_rotating_photo(id)
{
var items = _wp_widget_js_array[id].items;
var theobj = getElement(_wp_widget_js_array[id].obj);
if (theobj == null)
return;
var htm = "
";
if (isiPhone())
{
if (items.items.length == 1 &&
(items.items[0].content_type == "video/3gpp" || items.items[0].content_type == "audio/mp3"))
{
htm = "";
}
else
{
htm = "";
htm += "
";
htm += "";
}
}
else if (_wp_widget_js_array[id].type == "cooliris")
{
htm = "";
htm += "
";
htm += "";
}
_wp_widget_js_array[id].curr_items++;
if (_wp_widget_js_array[id].curr_items == items.items.length)
_wp_widget_js_array[id].curr_items = 0;
// preload next img
htm += "
";
theobj.innerHTML = htm;
if (items.items.length > 1)
setTimeout("wp_js_widget_code_rotating_photo('"+id+"')", 5000);
}
function wp_widget_show(obj)
{
var srctag = unescape(_wp_widget_tag).replace("[", "").replace("]", "");
var tag = srctag.split('+');
if (tag[1].substr(0, 1) == "0")
tag[1] = tag[1].substr(1);
var styleid = tag[1];
var paramsoverride = null;
var i=styleid.indexOf(".");
if (i > -1)
{
paramsoverride = styleid.substring(i+1);
styleid = styleid.substring(0, i);
}
var fid = tag[2];
var params = eval("_wp_widget_arr.style"+styleid);
if (paramsoverride != null)
{
var overpar = paramsoverride.split('.');
for(var i=0; i embed>';
}
else if (params.pm == "p4")
{
var xmllink = _wp_url + "xspf.aspx?fid="+fid;
if (params.thumb_size != null)
xmllink += "&thumb="+params.thumb_size;
if (params.content_size != null)
xmllink += "&content="+params.content_size;
xmllink = encodeURIComponent(xmllink);
var playervars = "";
playervars += "&backcolor=000000";
playervars += "&frontcolor=ffffff";
playervars += "&playlistsize="+params.plw;
playervars += "&height="+params.dh;
playervars += "&width="+params.dw;
//playervars += "&controlbar=over";
if (typeof params.playlist != "undefined")
playervars += "&playlist="+params.playlist;
if (params.autostart == true)
playervars += "&autostart=true";
if (params.shuffle == true)
playervars += "&shuffle=true";
else
playervars += "&shuffle=false";
if (typeof params.skin != "undefined")
playervars += "&skin="+_wp_url+params.skin;
if (typeof params.repeat != "undefined")
playervars += "&repeat="+params.repeat;
playervars += "&bufferlength=2";
//playervars += "&skin=styles/stijl.swf";
//playervars += "&stretching=fill";
//playervars += "&skin=styles/cometSkin.swf";
//playervars += "&skin=styles/pixelizeSkin.swf";
//playervars += "&skin=styles/controlpanelSkin.swf";
//playervars += "&skin=styles/kleurSkin.swf";
//playervars += "&skin=styles/playcassoSkin.swf";
if (params.player == null)
player = _wp_url + "player4.swf";
else
player = _wp_url + params.player + ".swf";
cpwidget = '